package com.y17376065_yzh_FinalTest.rdtt.ui.activity;

import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;



public class DB extends SQLiteOpenHelper {

    public static final String CREATE_USERDATA = "create table username(" +
            "id integer primary key autoincrement,"
            + "name text,"
            + "password text)";

    private Context mContext;

    public DB(Context context, String name, SQLiteDatabase.CursorFactory cursorFactory, int version) {
        super(context, name, cursorFactory, version);
        mContext = context;
    }

    public void onCreate(SQLiteDatabase db) {
        db.execSQL(CREATE_USERDATA);
    }

    public void onUpgrade(SQLiteDatabase db, int oldVersion, int newVersion) {
        //onCreate(db);
    }
}